{% form_theme form 'UserBundle:Form:fields.html.twig' %}

<div id="send_message" class="reveal-modal">
    <div class="row">
        <div class="twelve columns">
            <h5 class="pink-text"><i class="icon-envelope-alt icon-large"></i> Enviar mensaje</h5>
        </div>
		<form novalidate="" action="{{url('send_message')}}" id="send_message_form" name="send_message_form" method="POST" class="clearfix" onsubmit="return sendMessage('{{callback}}');">
			<div class="twelve columns alert-box alert errors"></div>
			<div class="twelve columns">
				{{ form_widget(form.mensaje) }}

                {% if form.children.captcha is defined %}
                    {{ form_widget(form.captcha) }}
                {% endif %}
				{{ form_rest(form) }}

				<input type="hidden" value="{{userTo.id}}" name="userTo"/>
				<button type="submit" id="btn_send_message_form" name="submit" class="radius secondary button">ENVIAR! &nbsp;<i class="icon-envelope"></i></button>
			</div>
		</form>
    </div><!--end row-->
    <a href="javascript:void(0);" class="close-reveal-modal">×</a>
</div>